package com.google.code.msgbooster.model.extension;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.code.msgbooster.model.Meta;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public final class Relationship extends Meta {

	private static final long serialVersionUID = 319737648485494507L;
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	@Persistent
	private Key collector;
	
	@Persistent
	private Key transponder;

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getCollector() {
		return collector;
	}

	public void setCollector(Key collector) {
		this.collector = collector;
	}

	public Key getTransponder() {
		return transponder;
	}

	public void setTransponder(Key transponder) {
		this.transponder = transponder;
	}

}
